<?php

namespace common\validate;

use think\Validate;

class TenantGroupApply extends BaseValidate
{
    protected $rule = [];

    public function sceneSelect()
    {
        return $this->append('param', 'require')
            ->append('param.page', 'require');
    }

    public function sceneSendApply()
    {
        return $this->append('data.tenant_group_id', 'require|integer');
    }

    public function sceneAuditApply()
    {
        return $this->append('data', 'require')
            ->append('data.id', 'require|integer');
    }

    public function sceneActivate()
    {
        return $this->append('data.id', 'require')
            ->append('data.status', 'require');
    }
}
